# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-crypt-des_ede3
_pkgname=Crypt-DES_EDE3
pkgver=0.01
pkgrel=16
pkgdesc='Perl module for triple-DES EDE encryption/decryption.'
arch=('any')
url='http://search.cpan.org/~btrott/Crypt-DES_EDE3'
license=('GPL' 'PerlArtistic')
depends=('perl-crypt-des')
source=("http://www.cpan.org/authors/id/B/BT/BTROTT/$_pkgname-$pkgver.tar.gz")
sha512sums=('96a643c5b9128dc34ee93fd5bcad5d2c56c5111a2c40843a7ea352bd62f1430dafc399d9c7e9809c1ba34dddc5e63d731370ae7c8d555b053f55d3de7f7cb7c8')

build() {
  cd "$_pkgname-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$_pkgname-$pkgver"

  make pure_install doc_install DESTDIR=$pkgdir

  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}

